//
//  InformationListViewController.swift
//  ModernFoodWebsite
//
//  Created by apple on 16/5/29.
//  Copyright © 2016年 Lonnie. All rights reserved.
//

import UIKit

class InformationListViewController: BaseTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        navigationItem.title = ""
        addCommonStyleBackItem()
        let header =  tableView.dequeueReusableCellWithIdentifier("header")
        self.tableView.tableHeaderView = header
        self.tableView.rowHeight = UITableViewAutomaticDimension
        self.tableView.estimatedRowHeight = 100
        print("navigation cnotroller:\(self.navigationController)")
    }

    // MARK: - Table view data source
 
    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return 100
    }
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("item", forIndexPath: indexPath)
 
        return cell
    }
}
